import { BasicColumn } from '@/components/Table/src/types/table';

export function getBasicColumns(): BasicColumn[] {
  return [
    {
      title: '机构名称',
      dataIndex: 'orgName',
      width: 100,
    },
    {
      title: '机构编码',
      dataIndex: 'orgCode',
      width: 100,
    },
    {
      title: '联系人',
      dataIndex: 'contactsName',
      width: 100,
    },
    {
      title: '联系电话',
      dataIndex: 'contactsPhone',
      width: 100,
    },
    {
      title: '分配总额',
      dataIndex: 'allotmentTotal',
      width: 100,
    },
    {
      title: '有效余额',
      dataIndex: 'effective',
      key: 'effective',
      slots: { customRender: 'effective' },
      width: 100,
    },
    {
      title: '近30天内到期',
      dataIndex: 'comingOfAge',
      width: 100,
    },
    {
      title: '小程序授权',
      dataIndex: 'isAuthorization',
      slots: { customRender: 'isAuthorization' },
      key: 'isAuthorization',
      width: 100,
    },
    {
      title: '创建时间',
      dataIndex: 'createTime',
      width: 100,
    },
  ];
}
